<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大模型观测平台</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body class="bg-gray-50">
    <div class="container mx-auto p-4">
        <h1 class="text-2xl font-bold mb-8 text-center text-purple-800">大模型观测平台 - APP原型设计</h1>
        
        <!-- 原型导航 -->
        <div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8">
            <button class="bg-purple-600 hover:bg-purple-700 text-white p-2 rounded shadow" onclick="showScreen('login')">登录界面</button>
            <button class="bg-purple-600 hover:bg-purple-700 text-white p-2 rounded shadow" onclick="showScreen('dashboard')">数据看板</button>
            <button class="bg-purple-600 hover:bg-purple-700 text-white p-2 rounded shadow" onclick="showScreen('question-bank')">题库管理</button>
            <button class="bg-purple-600 hover:bg-purple-700 text-white p-2 rounded shadow" onclick="showScreen('question-create')">创建题库</button>
            <button class="bg-purple-600 hover:bg-purple-700 text-white p-2 rounded shadow" onclick="showScreen('question-modify')">题库变形</button>
            <button class="bg-purple-600 hover:bg-purple-700 text-white p-2 rounded shadow" onclick="showScreen('evaluation')">评测审核</button>
            <button class="bg-purple-600 hover:bg-purple-700 text-white p-2 rounded shadow" onclick="showScreen('reports')">评测报告</button>
            <button class="bg-purple-600 hover:bg-purple-700 text-white p-2 rounded shadow" onclick="showScreen('settings')">系统设置</button>
        </div>

        <!-- 原型展示区域 -->
        <div class="screens-container">
            <!-- 登录界面 -->
            <div id="login" class="screen bg-white rounded-lg shadow-lg p-6 max-w-md mx-auto">
                <div class="text-center mb-8">
                    <div class="w-24 h-24 bg-purple-600 rounded-full mx-auto flex items-center justify-center">
                        <i class="fas fa-robot text-white text-4xl"></i>
                    </div>
                    <h2 class="text-2xl font-bold mt-4 text-gray-800">大模型观测平台</h2>
                    <p class="text-gray-500">登录您的账户以继续</p>
                </div>
                
                <div class="space-y-4">
                    <div>
                        <label class="block text-gray-700 mb-2" for="email">邮箱</label>
                        <input type="email" id="email" class="w-full p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600" placeholder="请输入您的邮箱">
                    </div>
                    
                    <div>
                        <label class="block text-gray-700 mb-2" for="password">密码</label>
                        <input type="password" id="password" class="w-full p-3 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-purple-600" placeholder="请输入您的密码">
                    </div>
                    
                    <div class="flex items-center justify-between">
                        <div class="flex items-center">
                            <input type="checkbox" id="remember" class="mr-2">
                            <label for="remember" class="text-gray-600">记住我</label>
                        </div>
                        <a href="#" class="text-purple-600 hover:text-purple-800">忘记密码?</a>
                    </div>
                    
                    <button class="w-full bg-purple-600 hover:bg-purple-700 text-white p-3 rounded-lg shadow-md transition duration-300" onclick="showScreen('dashboard')">
                        登录
                    </button>
                    
                    <div class="text-center mt-4">
                        <span class="text-gray-600">还没有账户?</span>
                        <a href="#" class="text-purple-600 hover:text-purple-800 ml-1">立即注册</a>
                    </div>
                </div>
            </div>
            
            <!-- 数据看板 -->
            <div id="dashboard" class="screen bg-white rounded-lg shadow-lg p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">数据看板</h2>
                    <div class="flex items-center">
                        <div class="relative mr-4">
                            <i class="fas fa-bell text-gray-600 text-xl"></i>
                            <span class="absolute -top-1 -right-1 bg-red-500 text-white text-xs w-4 h-4 flex items-center justify-center rounded-full">3</span>
                        </div>
                        <div class="w-10 h-10 bg-purple-200 rounded-full flex items-center justify-center">
                            <span class="text-purple-800 font-bold">JD</span>
                        </div>
                    </div>
                </div>
                <p class="text-lg">这是数据看板页面</p>
            </div>
            
            <!-- 题库管理 -->
            <div id="question-bank" class="screen bg-white rounded-lg shadow-lg p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">题库管理</h2>
                    <button class="bg-purple-600 hover:bg-purple-700 text-white px-4 py-2 rounded-lg flex items-center" onclick="showScreen('question-create')">
                        <i class="fas fa-plus mr-2"></i> 创建题库
                    </button>
                </div>
                <p class="text-lg">这是题库管理页面</p>
            </div>
            
            <!-- 创建题库 -->
            <div id="question-create" class="screen bg-white rounded-lg shadow-lg p-6 hidden">
                <div class="flex items-center mb-6">
                    <button class="mr-3 text-gray-600" onclick="showScreen('question-bank')">
                        <i class="fas fa-arrow-left"></i>
                    </button>
                    <h2 class="text-2xl font-bold text-gray-800">创建新题库</h2>
                </div>
                <p class="text-lg">这是创建题库页面</p>
            </div>
            
            <!-- 题库变形 -->
            <div id="question-modify" class="screen bg-white rounded-lg shadow-lg p-6 hidden">
                <div class="flex items-center mb-6">
                    <button class="mr-3 text-gray-600" onclick="showScreen('question-bank')">
                        <i class="fas fa-arrow-left"></i>
                    </button>
                    <h2 class="text-2xl font-bold text-gray-800">题库变形</h2>
                </div>
                <p class="text-lg">这是题库变形页面</p>
            </div>
            
            <!-- 评测审核 -->
            <div id="evaluation" class="screen bg-white rounded-lg shadow-lg p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">评测审核</h2>
                </div>
                <p class="text-lg">这是评测审核页面</p>
            </div>
            
            <!-- 评测报告 -->
            <div id="reports" class="screen bg-white rounded-lg shadow-lg p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">评测报告</h2>
                </div>
                <p class="text-lg">这是评测报告页面</p>
            </div>
            
            <!-- 系统设置 -->
            <div id="settings" class="screen bg-white rounded-lg shadow-lg p-6 hidden">
                <div class="flex justify-between items-center mb-6">
                    <h2 class="text-2xl font-bold text-gray-800">系统设置</h2>
                </div>
                <p class="text-lg">这是系统设置页面</p>
            </div>
        </div>
    </div>

    <!-- JavaScript 代码 -->
    <script>
        // 显示指定的屏幕，隐藏其他屏幕
        function showScreen(screenId) {
            // 获取所有屏幕元素
            const screens = document.querySelectorAll('.screen');
            
            // 隐藏所有屏幕
            screens.forEach(screen => {
                screen.classList.add('hidden');
            });
            
            // 显示指定的屏幕
            const targetScreen = document.getElementById(screenId);
            if (targetScreen) {
                targetScreen.classList.remove('hidden');
                console.log('显示屏幕: ' + screenId); // 添加调试信息
            } else {
                console.error('找不到屏幕: ' + screenId); // 添加错误信息
            }
        }

        // 页面加载时显示登录界面
        document.addEventListener('DOMContentLoaded', function() {
            console.log('页面加载完成，显示登录界面');
            showScreen('login');
        });
    </script>
</body>
</html> 